package com.zqwh.xtool.greendao.db;


import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;

import java.util.Date;
import org.greenrobot.greendao.annotation.Generated;

@Entity
public class Stock {
    @Id
    private String stockId;
    private Long devId;

    private Long toolId;
    private Long toolCategoryId;
    private String toolName;
    private String toolImage;
    private String toolSpec;
    private String toolDesc;
    private String toolCategoryName;

    private String epc;
    private Boolean valid = true;
    private Boolean hasRFID = true;
    private Boolean hasLent = true;
    private Boolean updated = false;
    private Date createTime;
    private Date updateTime;
    @Generated(hash = 66016781)
    public Stock(String stockId, Long devId, Long toolId, Long toolCategoryId,
            String toolName, String toolImage, String toolSpec, String toolDesc,
            String toolCategoryName, String epc, Boolean valid, Boolean hasRFID,
            Boolean hasLent, Boolean updated, Date createTime, Date updateTime) {
        this.stockId = stockId;
        this.devId = devId;
        this.toolId = toolId;
        this.toolCategoryId = toolCategoryId;
        this.toolName = toolName;
        this.toolImage = toolImage;
        this.toolSpec = toolSpec;
        this.toolDesc = toolDesc;
        this.toolCategoryName = toolCategoryName;
        this.epc = epc;
        this.valid = valid;
        this.hasRFID = hasRFID;
        this.hasLent = hasLent;
        this.updated = updated;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }
    @Generated(hash = 1902438397)
    public Stock() {
    }
    public String getStockId() {
        return this.stockId;
    }
    public void setStockId(String stockId) {
        this.stockId = stockId;
    }
    public Long getDevId() {
        return this.devId;
    }
    public void setDevId(Long devId) {
        this.devId = devId;
    }
    public Long getToolId() {
        return this.toolId;
    }
    public void setToolId(Long toolId) {
        this.toolId = toolId;
    }
    public Long getToolCategoryId() {
        return this.toolCategoryId;
    }
    public void setToolCategoryId(Long toolCategoryId) {
        this.toolCategoryId = toolCategoryId;
    }
    public String getToolName() {
        return this.toolName;
    }
    public void setToolName(String toolName) {
        this.toolName = toolName;
    }
    public String getToolImage() {
        return this.toolImage;
    }
    public void setToolImage(String toolImage) {
        this.toolImage = toolImage;
    }
    public String getToolSpec() {
        return this.toolSpec;
    }
    public void setToolSpec(String toolSpec) {
        this.toolSpec = toolSpec;
    }
    public String getToolDesc() {
        return this.toolDesc;
    }
    public void setToolDesc(String toolDesc) {
        this.toolDesc = toolDesc;
    }
    public String getToolCategoryName() {
        return this.toolCategoryName;
    }
    public void setToolCategoryName(String toolCategoryName) {
        this.toolCategoryName = toolCategoryName;
    }
    public String getEpc() {
        return this.epc;
    }
    public void setEpc(String epc) {
        this.epc = epc;
    }
    public Boolean getValid() {
        return this.valid;
    }
    public void setValid(Boolean valid) {
        this.valid = valid;
    }
    public Boolean getHasRFID() {
        return this.hasRFID;
    }
    public void setHasRFID(Boolean hasRFID) {
        this.hasRFID = hasRFID;
    }
    public Boolean getHasLent() {
        return this.hasLent;
    }
    public void setHasLent(Boolean hasLent) {
        this.hasLent = hasLent;
    }
    public Boolean getUpdated() {
        return this.updated;
    }
    public void setUpdated(Boolean updated) {
        this.updated = updated;
    }
    public Date getCreateTime() {
        return this.createTime;
    }
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    public Date getUpdateTime() {
        return this.updateTime;
    }
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return  "stockId='" + stockId + '\'' +
                ", devId=" + devId +
                ", toolId=" + toolId +
                ", toolCategoryId=" + toolCategoryId +
                ", toolName='" + toolName + '\'' +
                ", toolImage='" + toolImage + '\'' +
                ", toolSpec='" + toolSpec + '\'' +
                ", toolDesc='" + toolDesc + '\'' +
                ", toolCategoryName='" + toolCategoryName + '\'' +
                ", epc='" + epc + '\'' +
                ", valid=" + valid +
                ", hasRFID=" + hasRFID +
                ", hasLent=" + hasLent;
    }
}
